﻿@model Hrm.Services.PortfolioDto
@{
    ViewBag.Title = "PortfolioItem";
    Layout = "~/Views/Shared/_FrontLayout.cshtml";
}
<div id="content">
    <section id="topbar">
        <div class="container">
            <div class="row">
                <div class="col-md-6">
                    <h1>作品</h1>
                </div>
                <div class="col-md-6 text-right">
                    <ul class="breadcrumb">
                        <li>
                            <a href="@Url.Action("Index")">首页</a>
                        </li>
                        <li>
                            <a href="@Url.Action("Portfolio")">作品</a>
                        </li>
                        <li class="active">@Model.Name</li>
                    </ul>
                </div>
            </div>
        </div>
    </section>
    <section class="portfolio-item white-bg mt30 mb30">
        <div class="container">
            <div class="row">
                <div class="col-md-7">
                    <div class="projects relative ovh">
                        <div class="img-holder">
                            <div class="bg-img-holder">
                                <img src="@Model.ImageUrl" alt="@Model.Name">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-5">
                    <div class="heading mb30">
                        <h3>@Model.Name</h3>
                    </div>
                    <p>
                        @Model.Description
                    </p>
                    <hr>
                    <ul class="project-info">
                        <li><span><i class="glyphicon glyphicon-flash"></i>使用的技术:</span> @Model.SkillsUsed</li>
                    </ul>
                </div>
            </div>
        </div>
    </section>
    <section class="related-projects white-bg mb30">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <div class="heading mt30 mb30">
                        <h3>相关作品</h3>
                    </div>
                </div>
                <div class="col-md-12">
                    <div id="portfolio-carousel" class="owl-carousel">
                        @foreach (var item in (List<Hrm.Services.PortfolioDto>)ViewBag.RelatedPortfolios)
                        {
                            <div class="item">
                                <div class="img-holder">
                                    <div class="bg-img-holder">
                                        <img src="@item.ImageUrl" alt="@item.Name">
                                    </div>
                                    <div class="img-hover text-center">
                                        <a href="@Url.Action("PortfolioItem", new { Id = @item.Id })">
                                            <div class="img-hover-content">
                                                <h5>@item.Name</h5>
                                                <p>@item.Description</p>
                                                <i class="fa fa-long-arrow-right"></i>
                                            </div>
                                        </a>
                                    </div>
                                </div>
                            </div>
                        }
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>
@section JavascriptSection{
    <script src="~/Scripts/pages/portfolio-item.js"></script>
}

